package main

import (
	"fmt"
	"time"
)


func timeToStr(t int64) (strTime string) {

	strTime = time.Unix(t, 0).Format(BASE_FORMAT_S)
	return
}

func timeFunc() {

	nt := time.Now()
	fmt.Println(nt)

	timestamp := time.Now().Unix()
	fmt.Println(timestamp)

	a := timeToStr(timestamp)
	fmt.Printf("timeToStr: from [%d] to [%s] \n", timestamp, a)

	b := StrToTime(a)
	fmt.Printf("strToTime: from [%s] to [%d] \n", a, b)
}

func main() {
	timeFunc()
}
